package com.dao.primary.sys;

import com.model.pojo.sys.SysDept;

import java.util.List;

public interface SysDeptMapper {
    int deleteByPrimaryKey(Long sysDeptId);

    int insert(SysDept record);

    int insertSelective(SysDept record);

    SysDept selectByPrimaryKey(Long sysDeptId,Byte isDelete);

    int updateByPrimaryKeySelective(SysDept record);

    int updateByPrimaryKey(SysDept record);

    List<SysDept> selectList(Long sysDeptId,Byte isDelete);

    SysDept selectByDeptName(String deptName,Byte isDelete);

    int has(Long sysDeptId,Byte isDelete);

    int hasChild(Long parentId,Byte isDelete);

    int hasName(String deptName,Byte isDelete);
}